/*    */ package provider;
/*    */ 
/*    */ import java.io.File;
/*    */ 
/*    */ public class MapleDataProviderFactory
/*    */ {
/*  7 */   private static final String wzPath = System.getProperty("wzpath");
/*    */   
/*    */   private static MapleDataProvider getWZ(Object in) {
/* 10 */     if (in instanceof File) {
/* 11 */       return new MapleDataProvider((File)in);
/*    */     }
/* 13 */     throw new IllegalArgumentException("Can't create data provider for input " + in);
/*    */   }
/*    */   
/*    */   public static MapleDataProvider getDataProvider(Object in) {
/* 17 */     return getWZ(in);
/*    */   }
/*    */   
/*    */   public static File fileInWZPath(String filename) {
/* 21 */     return new File(wzPath, filename);
/*    */   }
/*    */ }


/* Location:              C:\PGX\Server.jar!\provider\MapleDataProviderFactory.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */